540.1. Section 540 does not apply in respect of a disposition by a taxpayer of a share of the capital stock of a foreign affiliate of the taxpayer, all or substantially all of the property of which at that time is excluded property within the meaning of section 576.1, to another foreign affiliate of the taxpayer where the disposition is part of a series of transactions or events for the purpose of disposing of the share of a person who, immediately after the series of transactions or events, is a person other than a foreign affiliate of the taxpayer, with whom the taxpayer is dealing at arm’s length.